package com.nstar.helloworld.model
{
	import org.osflash.arp.ModelLocator;
	import mx.collections.ArrayCollection;
	import mx.core.Application;
	
	[Bindable]
	public class Model extends ModelLocator
	{
		private static var inst:Model;
		//主应用的引用
		public var mainApp:Application;
		//是否在调试状态
		public var isDebug:Boolean = false;
		
		public var queryRequest:Object = new Object();	
		
		function Model()
		{
			//implement function
			super();
		}
		
		/**
		* Singleton accessor method.
		* 
		* @return A reference to the ModelLocator Singleton.
		*/
		public static function getInstance():Model
		{
			if ( !inst )
			{
				inst = new Model();
			}
			return inst;
		}				
		
	}
}